/* ==========================================================================
   BLOG VARIABLES - Using ChikakuMarket Colors
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary: #7b2cbf;
    --primary-light: #9d4edd;
    --primary-dark: #5a189a;
    
    /* Extended Violet Palette */
    --violet-electric: #9333EA;
    --violet-neon: #C026D3;
    --violet-iris: #5D5FEF;
    --violet-lavender: #B794F4;
    
    /* Secondary Colors */
    --secondary: #f77f00;
    --accent: #fcbf49;
    --fresh: #4ECDC4;
    --coral: #FF9E7D;
    
    /* Gradients */
    --gradient-violet: linear-gradient(135deg, var(--primary) 0%, var(--violet-500) 50%, var(--violet-neon) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-fresh: linear-gradient(135deg, var(--fresh) 0%, var(--accent) 100%);
    
    /* Neutrals */
    --dark: #1a1a1a;
    --dark-light: #2d3748;
    --light: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #9e9e9e;
    
    /* Glass Effects */
    --glass-bg-light: rgba(255, 255, 255, 0.15);
    --glass-bg-violet: rgba(139, 92, 246, 0.15);
    --glass-border-light: rgba(255, 255, 255, 0.25);
    --glass-border-violet: rgba(139, 92, 246, 0.25);
    --glass-blur: blur(10px);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   BLOG HEADER
   ========================================================================== */
.blog-header {
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.blog-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.blog-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-violet);
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.5rem;
    min-width: 200px;
    outline: none;
}

.search-box button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-violet);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   BLOG HERO
   ========================================================================== */
.blog-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f5ff 0%, #f0f7ff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-highlight {
    display: block;
    background: var(--gradient-violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--dark-light);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.hero-visual {
    position: relative;
    height: 300px;
}

.floating-elements {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.875rem;
}

.card1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card2 {
    top: 60px;
    left: 150px;
    animation-delay: 2s;
}

.card3 {
    top: 120px;
    left: 300px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================================================
   FEATURED SECTION
   ========================================================================== */
.featured-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight {
    color: var(--primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.featured-article {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-10px);
}

.article-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-sunset);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.article-image {
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-badge {
    padding: 0.25rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.date {
    color: var(--gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.article-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--dark-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-stats {
    display: flex;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* ==========================================================================
   BLOG LAYOUT
   ========================================================================== */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* ==========================================================================
   ARTICLES SECTION
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--gray-light);
    border-radius: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-violet);
    border-color: var(--primary);
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-time {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.category {
    font-weight: 600;
}

.date {
    color: var(--gray);
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.article-title a {
    color: var(--dark);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--dark-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.author-title {
    color: var(--gray);
    font-size: 0.75rem;
}

.save-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.save-btn:hover {
    color: var(--primary);
}

.load-more {
    text-align: center;
}

.btn-outline {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.glass {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-light);
}

.glass-primary {
    background: var(--glass-bg-violet);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-violet);
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-violet);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.3s ease;
}

.popular-post:hover {
    background: var(--gray-light);
}

.popular-rank {
    width: 30px;
    height: 30px;
    background: var(--gradient-sunset);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.popular-content h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.popular-meta {
    color: var(--gray);
    font-size: 0.75rem;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.3s ease;
}

.category-item:hover {
    background: var(--gray-light);
}

.category-count {
    background: var(--gray-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   BLOG FOOTER
   ========================================================================== */
.blog-footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-group h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.link-group a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #a0aec0;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-filters {
        flex-wrap: wrap;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }
.w-100 { width: 100%; }

/* ==========================================================================
   ARTICLE MODAL - FIXED
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.modal-content {
    padding: 40px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Article content styles */
.article-full {
    max-width: 100%;
}

.article-hero {
    margin-bottom: 30px;
}

.article-meta-full {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
}

.highlight-text {
    font-size: 1.25rem;
    color: #7b2cbf;
    border-left: 4px solid #7b2cbf;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.highlight-box, .tip-box {
    background: #f8f5ff;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.tip-number {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #7b2cbf;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.income-table {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.income-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.income-row:last-child {
    border-bottom: none;
}

.income-row.total {
    background: #7b2cbf;
    color: white;
    font-weight: 600;
}

.author-bio {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-style: italic;
}

.pricing-table {
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-row.header {
    background: #f3f4f6;
    font-weight: 600;
}

.pricing-row:last-child {
    border-bottom: none;
}